package patterns.intercepting;

/**
 * Created by lenovo on 2016/12/12 0012.
 * 演示
 */
public class InterceptingPatternDemo {
    public static void main(String[] args){
        FilterManager filterManager = new FilterManager(new Target());

        filterManager.setFilter(new AuthenticationFilter());
        filterManager.setFilter(new DebugFilter());

        Client client = new Client();
        client.setFilterManager(filterManager);
        client.sendRequest("Home");
    }
}
